import 'package:json_annotation/json_annotation.dart';
import '../model/message_model.dart';
import '../model/pipe_model.dart';

part 'pipe_scene_model.g.dart';


@JsonSerializable()
class PipeSceneModel extends Object{

  @JsonKey(name: 'pipe')
  PipeModel pipe;

  @JsonKey(name: 'list')
  List<MessageModel> list;

  PipeSceneModel(this.pipe, this.list);

  factory PipeSceneModel.fromJson(Map<String, dynamic> srcJson) => _$PipeSceneModelFromJson(srcJson);

}